<template>
    <div class="go_back">
      <div>
        <span class="iconfont icon-icon4" @click="goBackTo"></span>
      </div>
      <div>
        <go-search></go-search>
      </div>

    </div>
</template>

<script>
  import GoSearch from '../goSeaech/GoSearch'
  export default {
    props:{

    },
    name: 'GoBack',
    methods:{
      goBackTo(){
        this.$router.push({name:'Index'})
      }
    },
    components:{
      GoSearch
    }
  }
</script>

<style scoped>
  .go_back{
    display: flex;
    background-color: #e6191e;
    height: 50px;
    font-size: 0.8rem;
    padding: 0 10px;
  }
  .go_back>div:nth-child(1){
    background-color: #e6191e;
    color: #ffffff;
    margin-right: 20px;
    line-height: 40px;
  }
  .go_back>div:nth-child(2){
    flex: 1;
    background-color: #e6191e;
  }
</style>
